package cn.gson.springmvc.model.service;

import cn.gson.springmvc.model.mappers.CshiMappers;
import cn.gson.springmvc.model.pojos.Namem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CshiService {
    @Autowired
    CshiMappers cshiMappers;

    @Transactional(value ="transactionManager_mybatis" ,rollbackFor = Exception.class)
    public List<Namem> selectname(){
        return cshiMappers.selectnamen();
    }
}
